import App from '@/App.vue'
import globalApi from '@/api/GlobalApi'
import '@/assets/iconfont/iconfont.css'
import '@/assets/iconfont/iconfont.js'
import 'element-plus/theme-chalk/index.css'
import pinia from '@/store'
import router from '@/router'

const app = createApp(App).use(pinia)
app.use(router).mount('#app')

// Vue3 配置全局变量如下 见 auto-import.d.ts
app.config.globalProperties.$MSG = ElMessage
app.config.globalProperties.$API = globalApi
app.config.globalProperties.$ENV = import.meta.env

// Vue3 自定义指令 https://cn.vuejs.org/guide/reusability/custom-directives.html
// app.directive('loading', loading)
